import service from '@/utils/request'

const BASE_URL = 'api-order'

// 获取报名情况列表
export function registrationList(data) {
    return service({
        url: `${BASE_URL}/registration`,
        method: 'get',
        params: data
    })
}

//学生报名情况
export function studentSignUp(data) {
    return service({
        url: `${BASE_URL}/student/sign-up`,
        method: 'get',
        params: data
    })
}

//订单列表
export function orderList(data) {
    return service({
        url: `${BASE_URL}/orders`,
        method: 'get',
        params: data
    })
}

//订单详情
export function orderDetail(orderId) {
    return service({
        url: `${BASE_URL}/order/${orderId}`,
        method: 'get'
    })
}

//后台管理系统创建订单
export function createOrderByBack(data) {
    return service({
        url: `${BASE_URL}/order/back`,
        method: 'post',
        data
    })
}
